#!/usr/bin/python

# Construct two models, referring to each other.

from pyodm.document import Document
from pyodm.fields import *

class ReferreeDocument(Document):
    field = StringField()

class ReferrerDocument(Document):
    field1 = StringField()
    field2 = IntegerField()
    ref = ReferenceField(ReferreeDocument)
